tools: arm: refactor code to setup guest p2m and fill it with RAM
authorIan Campbell <ian.campbell@citrix.com>
Thu, 22 May 2014 09:46:40 +0000 (10:46 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Jun 2014 13:56:57 +0000 (14:56 +0100)
commitdb57c96dc0afebc1c72c0b0c66489bdfd91872c9
tree15a44f2a44e15a116693c62b002b4deeb9e9c360
parent2d72d29bd432f800c8455b9eb16b68dc8f99ce9c
tools: arm: refactor code to setup guest p2m and fill it with RAM

This will help when we have more guest RAM banks.

Mostly code motion of the p2m_host initialisation and allocation loop into the
new function populate_guest_memory, but in addition in the caller we now
initialise the p2m all the INVALID_MFN to handle any holes, although in this
patch we still fill in the entire allocated region.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_dom_arm.c